package ualrcdg.files;

import java.io.File;

import android.content.Context;

import com.example.cdg.R;
/**
 * This class allows media content to
 * be delivered to users based on tasks
 * that are completed.
 */
public class MediaResolver
{

	/**
	 * This a nullary constructor
	 */
	public MediaResolver() 
	{
		
	}
	private static final int[] TEXT_TABLE = new int[] {
		   R.string.text1,
		   R.string.text2,
		};
	private static final int[] EDITMESSAGE_TABLE = new int[] {
		   R.string.edit_message1,
		   R.string.edit_message2,
		};
	/**
	 * This method delivers content when called.
	 */
	public String getTextBox(Context context, int gameID) 
	{ 
		//int newInt = Integer.getInteger(gameID);
		return context.getString(TEXT_TABLE[gameID]);
	}
	 private String getStringResourceByName(String aString)
	    {
	      return null;
	    }
	
	public String getEdText(Context context, int gameID)
	{
		//EditText editText = (EditText) findViewById(R.id.edit_message);
		//int newInt = Integer.getInteger(gameID);
		return context.getString(EDITMESSAGE_TABLE[gameID]);
	}
	
	public String getImage(String gameID)
	{
		return null;
	}
	
	/**
	 * This method loads file media when called.
	 */
	public File loadFileMedia(String gameID, String fileId)
	{
		return null;
	}
	
	/**
	 * This method loads chunk media when called.
	 */
	public String loadChunkMedia(String gameId, String stringId)
	{
		return null;
	}
}
